<?php echo breadcrumb(get_breadcrumb($category->id)) ?>

<h1><?php echo lang_decode($category->name) ?><span></span></h1>
<div class="clear"></div>
<div class="box">
	<div class="view">
<table class="download-table">
	<?php foreach($contents as $content): ?>
		<tr>
			<th><img class="img" src="<?php echo (is_file('uploads/content/thumbnail/download/'.$content->image))? 'uploads/content/thumbnail/download/'.$content->image : 'media/images/dummy/small.jpg' ?>"  /></th>
			<td>
				<h3><?php echo lang_decode($content->title) ?></h3>
				<p><?php echo nl2br(lang_decode($content->detail)) ?></p>
				<a href="contents/download/<?php echo $content->id ?>"><img width="80" height="24" src="themes/default/media/images/btn_save.png" alt="ดาวน์โหลดไฟล์นี้" title="ดาวน์โหลดไฟล์นี้" style="margin-top: 5px;"></a>
				<div class="counter">ดาวน์โหลด <span class="num"><?php echo $content->counter ?></span> ครั้ง</div>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php echo $contents->pagination()?>
</div>
</div>